package edu.xust.dao;


import edu.xust.entity.Student;

import java.util.List;

public interface StudentDao {

    public List<Student> getAllStudents() throws Exception ;

    /**
     * 根据主键查询 示范简单参数
     * @param id
     * @return
     */

    public Student getStudentById(String id)  throws Exception;

    /**
     * 增删改 返回值为Integer dml sql的操作结果就是整数
     * @param student
     * @return
     */
    public Integer addStudent(Student student) throws Exception;
}
